
<?php 
$category=$portlet_categorymenu_category;
if (isset($portlet_categorymenu_targetPage)) $targetPage=$portlet_categorymenu_targetPage; else $targetPage="catalogue";
?>
<div class="menucategories" id="menu_<?=$category?>_div"><?php 



$categoryId=getObjByKey("shop_category","id","category",$category,"portalId",$portalId);




Shop_printSubCategories($categoryId,0,$targetPage);
	
	

?>

</div>


<script>

$(function() {
	
	
	
	$('#menu_<?=$category?>').hover(function(){ //Open on hover 
		  $("#menu_<?=$category?>_div").show();
    },    
    function(){ //Close when not hovered
    	 //$("#menu_<?=$category?>_div").hide();
    });



	$('#menu_<?=$category?>_div').hover(function(){ //Open on hover 
		 // $("#menu_<?=$category?>_div").show();
  },    
  function(){ //Close when not hovered
  	 $("#menu_<?=$category?>_div").hide();
  });

	




});


</script>